package com.example.demo.Service;

import com.example.demo.Mapper.AdminMapper;
import com.example.demo.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper mapper;
    @Override
    public boolean CheckAdmin(Admin admin) {
        Admin admin1 = mapper.SelectAdminPass(admin.getAdminAcount(),admin.getAdminPassword());
        if (admin1 != null){
            return true;
        }
        return false;
    }
}
